#include "Components/ATK_MS901M/atk_ms901m.h"
#include "Components/algorithm.h"
#include "Components/basic.h"
#include "Components/line_patrol.h"
#include "Components/motion.h"
#include "Components/motor.h"
#include "Components/oled_hardware_i2c.h"
#include "Components/servo.h"
#include "Components/simple_json.h"
#include <ti/driverlib/m0p/dl_interrupt.h>

#define TAG "Main"

int main(void) {
  SYSCFG_DL_init();
  SysTick_Init();

  uart_init();
  OLED_Init();
  motor_init();
  OLED_ShowString(0, 0, "micro second Tick Test", 16);

  while (1) {
    mspm0_delay_us(500 * 1000);
    log(TAG, "LED Blinking...");
    DL_GPIO_togglePins(LEDs_PORT, LEDs_LED_PIN);
  }
}
